package com.aq.lambda;



public class TestLambda2 {
    public static void main(String[] args) {

        class Love implements ILove{
            @Override
            public void love(int a) {
                System.out.println("I love you2--->" + a);
            }
        }
        ILove love = new Love();
        love.love(2);
    }
}



interface ILove{
    void love(int a);
}

class Love implements ILove{
    @Override
    public void love(int a) {
        System.out.println("I love you1--->" + a);
    }
}